<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>生活部落联盟管理系统</title>
<%@include file="jxInclude.jsp"%>
<LINK media=screen href="<%=jxPath%>/lib/themes/crispin/jxtheme.css" type=text/css charset=utf-8 rel=stylesheet>
<%@include file="jsInclude.jsp"%>
<script type="text/javascript">
var refTree;
var panelContent;
var homeTab, refTab, examplesTab,codeTab,groupTab;

function parentHref(bTab){
	window.parent.main.location.href=bTab.options.content;
}
window.addEvent('load', function() {
	var pvValue = $("pvValue").value;
	var toolbarContainer = new Jx.Toolbar.Container({
        scroll: false, 
        autoSize: true
    }).addTo('content');
    
    var toolbar = new Jx.Toolbar();
    toolbarContainer.add(toolbar);
    if(pvValue == null || pvValue.length < 1){
			window.parent.location.href="<%=request.getContextPath()%>/adminLogin.do";
     }else{
        var tabSet =  new Jx.TabSet('tabset');
        var menuBar = eval('('+pvValue+')');
        for(var i = 0; i < menuBar.length; i++){
            var barItem = menuBar[i];
			var _tTab = new Jx.Button.Tab({
				label:barItem[0],
				content:barItem[1],
				onDown:function(){
					parentHref(this);
				}
			});
			tabSet.add(_tTab);
			toolbar.add(_tTab);
        }
	    
     }
});
</script>
<style>
BODY {
	BACKGROUND-POSITION: 0px top; BACKGROUND-IMAGE: url(<%=request.getContextPath()%>/jxlib/lib/themes/crispin/images/panelbar.png); MARGIN: 0px; OVERFLOW: hidden; WIDTH: 100%; BACKGROUND-REPEAT: repeat-x; HEIGHT: 100%; BACKGROUND-COLOR: #ccc
}
H1 {
	PADDING-RIGHT: 0px; PADDING-LEFT: 13px; FONT-WEIGHT: bold; FONT-SIZE: 30px; Z-INDEX: 2; PADDING-BOTTOM: 0px; COLOR: #6eafc5; LINE-HEIGHT: 30px; PADDING-TOP: 13px; FONT-FAMILY: Arial, Helvetica, sans-serif; POSITION: absolute; TOP: 0px
}
#contentBg {
	BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; BACKGROUND-POSITION: 0px bottom; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BACKGROUND-IMAGE: url(<%=request.getContextPath()%>/jxlib/lib/themes/crispin/images/tabbar.png); BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 100%; BOTTOM: 0px; PADDING-TOP: 0px; BACKGROUND-REPEAT: repeat-x; POSITION: absolute; HEIGHT: 100%; BORDER-RIGHT-WIDTH: 0px
}
#content {
	PADDING-LEFT: 50px; BOTTOM: 0px; POSITION: absolute
}
.jxBarContainer {
	BACKGROUND-IMAGE: none; WIDTH: auto; BACKGROUND-COLOR: transparent
}
</style>
</head>
<BODY style="OVERFLOW: hidden;width:800;text-algin:center">
<input type="hidden" id="pvValue" name="pvValue" value='<s:property value="%{pvValue}"/>'>
<DIV id=contentBg></DIV>
<DIV id=content></DIV>
<DIV id=tabset style="DISPLAY: none"></DIV>
</body>
</html>